replace

Replaces some text in a string.

deprecated("Too memory expensive, requires a rewrite.")
T
replace
pure
(
T
)
(
,,,
bool caseSensitive = true
,
bool first = false
)
if (
isSomeString!T
)

Parameters

text
Type: T

The old text to replace from

oldText
Type: T

The text to remove

newText
Type: T

The text to replace oldText with

caseSensitive
Type: bool

Does 'A' and 'a' the same character? Default: true

first
Type: bool

Stop after the first instance of oldText? Default: false

Return Value

Type: T

The text that has been replaced

Meta